// pages/b/b.js
import http from '../../common/http'
Page({

  /**
   * 页面的初始数据
   */
  data: {
    a: []
  },
  onLoad(options) {
    http({
      url: 'https://route.showapi.com/1700-1',
      method: 'GET',
      data: {
        showapi_appid: '1367085',
        showapi_sign: 'cb8507c33e4a43cfa34a954c91b91fd6',
      },
    }).then(res => {
      // console.log(res);
      console.log(res.data.showapi_res_body.storylist.classifyId);
      // console.log();
      this.setData({
        a: res.data.showapi_res_body.storylist.classifyId
      })
    })
  },
  lb(e){
    console.log(e.currentTarget.dataset.id);
    wx.navigateTo({
      url: `../c/c?id=${e.currentTarget.dataset.id}`,
    })
  }
})